fruits = ["apple", "banana", "cherry"]
for fruit in fruits:
    print(fruit)


for char in "hello":
    print(char)


person = {"name": "Alice", "age": 30, "city": "New York"}
for key in person:
    print(key, ":", person[key])


count = 0
while count < 5:
    print(count)
    count += 1  # 别忘了更新条件，否则会导致无限循环


fruits = ["apple", "banana", "cherry"]
index = 0
while index < len(fruits):
    print(fruits[index])
    index += 1
